package com.ctshk.rpc.order.air.req.app;

import com.ctshk.rpc.order.air.req.orderDetail.AirOrderFlightPriceData;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * @BelongsProject: ctshk-cloud
 * @BelongsPackage: com.ctshk.rpc.order.air.req.app
 * @Author: hef
 * @CreateTime: 2021-05-20 14:06
 * @Description: 描述
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class OrderProductReq implements Serializable {

    @NotNull(message = "机票ID不能为空")
    @ApiModelProperty(value = "机票产品Id")
    private Long productId;

    @NotNull(message = "乘坐日期不能为空")
    @ApiModelProperty(value = "乘坐日期不能为空")
    private LocalDate date;

    @ApiModelProperty(value = "第几程")
    private Integer tripRank;

    @ApiModelProperty(value = "航班旅客价格信息")
    private List<AirOrderFlightPriceData> orderFlightPriceDataList;
}
